package com.power.sifa.correction.dao;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.Repository;
import org.springframework.data.repository.query.Param;
import com.power.sifa.correction.model.Cre_work_repeat;

import javax.transaction.Transactional;
import java.io.Serializable;
import java.util.List;

/**
 * 再办任务 持久层(hibernate)
 */

public interface Cre_work_repeatDao extends JpaRepository<Cre_work_repeat, Serializable>, JpaSpecificationExecutor<Cre_work_repeat>, Repository<Cre_work_repeat, Serializable>, Cre_work_repeatDaoCustom<Cre_work_repeat, Serializable> {

   @Modifying
   @Transactional
   @Query("delete  from Cre_work_repeat s where  s.id in (:ids) ")
   void removeByIds(@Param("ids") List<Integer> ids);
}
